package org.softmed.reflection.utils;

import java.lang.reflect.Method;

public class FieldInfo {
	String alias;
	String name;
	Method setter;
	Method getter;
	Class type;

	public FieldInfo() {

	}

	public FieldInfo(String name, Method getter, Method setter, Class paramType) {
		this.name = name;
		this.getter = getter;
		this.setter = setter;
		this.type = paramType;
	}

	public FieldInfo(String name, Method getter, Method setter) {
		this.name = name;
		this.getter = getter;
		this.setter = setter;
		this.type = getter.getReturnType();
	}

	public Method getSetter() {
		return setter;
	}

	public void setSetter(Method setter) {
		this.setter = setter;
	}

	public Method getGetter() {
		return getter;
	}

	public void setGetter(Method getter) {
		this.getter = getter;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Class getType() {
		return type;
	}

	public void setType(Class type) {
		this.type = type;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}
}
